/* 通用样式 */
html {
  height: 100%;
}

body {
  margin: 0 auto;
  width: 360px;
  height: 100%;
  min-height: 545px;
  font-family: 'Helvetica Neue',Helvetica,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',Arial,sans-serif;
  color: #555;
  background-color: #f7fafc;
}

header {
  padding-top: 120px;
}

h1 {
  margin: 0;
  font-size: 3em;
  color: #1d80cf;
}

h2 {
  margin: 30px 0 20px;
  font-size: 18px;
  font-weight: normal;
  line-height: 1;
}

.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.hide {
  display: none;
}

.signup-info {
  position: relative;
}

.error {
  position: absolute;
  top: 0;
  left: 376px;
  width: 300px;
  color: red;
  height: 47px;
  line-height: 47px;
  border: 1px solid red;
  border-radius: 3px !important;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
  background-color: #fff;
}

.error div {
  position: absolute;
  border-bottom: 1px solid red;
  border-left: 1px solid red;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  border-radius: 0 !important;
  width: 16px;
  height: 16px;
  top: 15px;
  left: -8px;
  background-color: #fff;
  transform: rotate(45deg);
}

input {
  outline: none;
}

input[type="text"],
input[type="password"] {
  height: 47px;
  width: 100%;
  box-sizing: border-box;
  border: none;
  padding: 0 10px;
}

a,
a:hover,
a:link,
a:active {
  color: #555;
  text-decoration: none;
}

.sign-tab-navs {
  margin-bottom: 20px;
}

.to-signup,
.to-signin {
  display: inline-block;
  margin: 0 30px;
  font-size: 1.2em;
  line-height: 35px;
  cursor: pointer;
}

.active {
  color: #1d80cf;
  border-bottom: 2px solid #1d80cf;
}

.btn {
  display: block;
  margin: 15px 0;
  height: 47px;
  width: 100%;
  border: none;
  border-radius: 3px;
  font-size: 1em;
  font-weight: bold;
  color: #fff;
}

.btn-signin {
  background-color: #80c3f7;
}

.btn-signin:hover {
  background-color: #1d80cf;
}

.btn-signup {
  background-color: #8add6d;
}

.btn-signup:hover {
  background-color: #5ca941;
}

.signup-input > :not(:first-child),
.signin-input > :not(:first-child) {
  border-top: 1px solid #d5d5d5;
}

.signup-input :first-child,
.signin-input :first-child {
  border-radius: 3px 3px 0 0;
}

.signup-input :last-child,
.signin-input :last-child {
  border-radius: 0 0 3px 3px;
}


.signup-or-signin {
  box-sizing: border-box;
  height: 100%;
  padding-bottom: 42px;
  text-align: center;
}

.signup-input,
.signin-input {
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  margin-bottom: 5px;
}

footer {
  position: relative;
  margin-top: -42px;
  height: 42px;
  text-align: center;
  line-height: 42px;
  font-size: 0.8em;
  color: #555;
}
